/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cstring>
using namespace std;
const int L=11;
struct Info
{
    char username[L];
    char password[L];
} accounts[1001],tempAcc;
int main_1035()
{
    int N,M=0;
    scanf("%d",&N);
    for (int i=0;i<N ;++i )
    {
        scanf("%s %s",tempAcc.username,tempAcc.password);
        int len=strlen(tempAcc.password);
        bool flag=false;
        for (int j=0;j<len ;++j )
        {
            if ('1'==tempAcc.password[j])
            {
                tempAcc.password[j]='@';
                flag=true;
            }
            else if ('0'==tempAcc.password[j])
            {
                tempAcc.password[j]='%';
                flag=true;
            }
            else if('l'==tempAcc.password[j])
            {
                tempAcc.password[j]='L';
                flag=true;
            }
            else if('O'==tempAcc.password[j])
            {
                tempAcc.password[j]='o';
                flag=true;
            }
        }
        if (flag)
        {
            accounts[M++]=tempAcc;
        }
    }
    if (M==0)
    {
        printf("There %s %d account%s and no account is modified",(N==1)?"is":"are",N,(N==1)?"":"s");
    }
    else
    {
        printf("%d\n",M);
        for (int k=0;k<M ; ++k)
        {
            printf("%s %s\n",accounts[k].username,accounts[k].password);
        }
    }
    return 0;
}
